## Process this file with automake to produce Makefile.in

## Created by Anjuta

AM_CPPFLAGS = \
	-DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
	-DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
	-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
	-DPIXMAPDIR=\""$(datadir)/pixmaps/"\" \
	$(GNOTTER_CFLAGS)

AM_CFLAGS =\
	 -Wall\
	 -g

libexec_PROGRAMS = gnotter

gnotter_SOURCES = \
	main.c   \
	twitter_api.c   \
	twitter_api.h   \
	gtrstatustextview.h   \
	gtrstatustextview.c   \
	gtruritexttag.h   \
	gtruritexttag.c   \
	gtrpixcache.c   \
	gtrpixcache.h   \
	gtractionbuttons.h   \
	gtractionbuttons.c   \
	gtrshortenurl.h   \
	gtrshortenurl.c

gnotter_LDFLAGS = \
	-Wl,--export-dynamic

gnotter_LDADD = $(GNOTTER_LIBS)

serverdir       = $(libdir)/bonobo/servers
server_in_files = gnotter.server.in
server_in_in_files = $(server_in_files:.server.in=.server.in.in)
server_DATA     = $(server_in_files:.server.in=.server)

CLEANFILES = $(server_in_files) $(server_DATA)

pixmapdir = $(datadir)/pixmaps

pixmap_DATA = gnotter.svg \
	reply.png \
	retweet.png

EXTRA_DIST = \
	gnotter.server.in.in \
	$(pixmap_DATA)
	
%.server: %.server.in
	sed -e "s|\@DATADIR\@|$(datadir)|;" $< > $@


# Display a message at the end of install
install-data-hook:
	@echo "***"
	@echo "*** If you have installed your applet in a non standard directory. You have to"
	@echo "*** add it in the bonobo server list, so it can find your applet."
	@echo "***"
	@echo "*** Run 'bonobo-activation-sysconf --add-directory=$(serverdir)'"
	@echo "*** Log out from your current GNOME session"
	@echo "*** Run 'bonobo-slay'"
	@echo "*** Check that the bonobo server is not running"
	@echo "*** Log in again, your applet should be available"
	@echo "***"
